package com.lekang.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lekang.common.annotation.Excel;
import com.lekang.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 护理计划对象 nursing_plan
 * 
 * @author ruoyi
 * @date 2025-10-14
 */
public class NursingPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String planName;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 状态(0:禁用 1:启用) */
    @Excel(name = "状态(0:禁用 1:启用)")
    private Long status;

    /** 逻辑删除 */
    private Long isDeleted;

    /** 额外字段1 */
    private String extraField1;

    /** 额外字段2 */
    private String extraField2;


    @Excel(name = "创建人姓名")
    private String creatorName;

    private List<NursingItemPlanBindingDTO> nursingItems;
    
    /** 是否被护理等级使用（非数据库字段，用于前端判断是否可删除/编辑） */
    private Boolean isUsedByLevel;

    public List<NursingItemPlanBindingDTO> getNursingItems() {
        return nursingItems;
    }

    public void setNursingItems(List<NursingItemPlanBindingDTO> nursingItems) {
        this.nursingItems = nursingItems;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
    
    public Boolean getIsUsedByLevel() {
        return isUsedByLevel;
    }
    
    public void setIsUsedByLevel(Boolean isUsedByLevel) {
        this.isUsedByLevel = isUsedByLevel;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }

    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public void setExtraField1(String extraField1) 
    {
        this.extraField1 = extraField1;
    }

    public String getExtraField1() 
    {
        return extraField1;
    }

    public void setExtraField2(String extraField2) 
    {
        this.extraField2 = extraField2;
    }

    public String getExtraField2() 
    {
        return extraField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planName", getPlanName())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("isDeleted", getIsDeleted())
            .append("extraField1", getExtraField1())
            .append("extraField2", getExtraField2())
            .toString();
    }
}
